SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 44089: Trying to rename a DB2 table with a DATASETS procedure might result in an error

DetailsAboutRate It

Using a CHANGE statement withing a DATASETS procedure to rename a DB2 table might result in an error. The problem occurs if you are accessing DB2 using SAS/ACCESS® Interface to DB2 under UNIX and PC hosts and a SCHEMA= option was defined in the LIBNAME statement. If a SCHEMA= option was included in the LIBNAME definition, the following error occurs:

ERROR: CLI execute error: [IBM][CLI Driver][DB2/AIX64] SQL0108N  The name
"XXXX" has the wrong number of qualifiers.  SQLSTATE=42601

The problem arises because the schema is included with the new table name in the statement passed to DB2, but DB2 does not allow it. The schema can be included only with the current DB2 table name. The only workaround is to use explicit pass-through and pass the DB2 RENAME statement.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to DB2Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M3 SP4
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M3 SP4
Microsoft Windows XP 64-bit Edition9.1 TS1M3 SP4
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP4
Microsoft Windows 2000 Server9.1 TS1M3 SP4
Microsoft Windows 2000 Professional9.1 TS1M3 SP4
Microsoft Windows NT Workstation9.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP4
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP4
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP4
Microsoft Windows XP Professional9.1 TS1M3 SP4
Windows Vista9.1 TS1M3 SP4
Windows Vista for x649.1 TS1M3 SP4
64-bit Enabled AIX9.1 TS1M3 SP49.4 TS1M0
64-bit Enabled HP-UX9.1 TS1M3 SP49.4 TS1M0
64-bit Enabled Solaris9.1 TS1M3 SP49.4 TS1M0
HP-UX IPF9.1 TS1M3 SP4
Linux9.1 TS1M3 SP4
Linux on Itanium9.1 TS1M3 SP49.4 TS1M0
Solaris for x649.1 TS1M3 SP49.4 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.